import { constantRoutes } from '@/router'
const state = {
  routesList: []
}

const mutations = {
  // 将动态与静态路由储存到vuex中
  getRoutesList(state, data) {
    state.routesList = [...constantRoutes, ...data]
  }
}

const getters = {

}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  getters,
  actions
}
